﻿@model Competition.Admin.Web.Models.BannerViewModels.BannerViewModel
@{
    ViewData["Title"] = "Edit";
}

<div class="page-container">
    <form method="post" class="form form-horizontal ajaxForm" asp-action="Edit" asp-controller="Banner" asp-route-id="@Model.Id" enctype="multipart/form-data">
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3" asp-for="Title"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text" asp-for="Title">
                <span class="c-red">*</span>
                <span asp-validation-for="Title"></span>
            </div>
            <div class="col-3">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3" asp-for="Url"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text" type="file" name="imgFile">
                <input asp-for="Url" hidden />
                <span class="c-red">*</span>
                <span asp-validation-for="Url"></span>
            </div>
            <div class="col-3">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3" asp-for="Link"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <input class="input-text" asp-for="Link">
                <span asp-validation-for="Link"></span>
            </div>
            <div class="col-3">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3" asp-for="Status"></label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" asp-for="Status">
                        <option value="1">有效</option>
                        <option value="0">无效</option>
                    </select>
                </span>
                <span class="c-red">*</span>
                <span asp-validation-for="Status"></span>
            </div>
            <div class="col-3">
            </div>
        </div>

        <div class="row cl">
            <div class="col-9 col-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</div>